#ifndef _BSP_HMI_H
#define _BSP_HMI_H

#include "stm32f4xx_hal.h"

#define GET_PERIOD 10

void hmi_screen_task(void const *argu);
	
void HMI_Init(UART_HandleTypeDef *huart);
void HMISendb(UART_HandleTypeDef *huart);
void Send_Data(UART_HandleTypeDef *huart,uint8_t *dat,uint16_t len);

typedef enum
{
	MCU_COMMUNICATE_OFFLINE_ID = 0,
  CHASSIS_M1_OFFLINE_ID   = 1,
  CHASSIS_M2_OFFLINE_ID   = 2,
  CHASSIS_M3_OFFLINE_ID   = 3,
  CHASSIS_M4_OFFLINE_ID   = 4,
  REMOTE_CTRL_OFFLINE_ID  = 5,
  JUDGE_SYS_OFFLINE_ID    = 6,
  PC_SYS_OFFLINE_ID       = 7,
	UPDOWN_MOTO1_OFFLINE_ID = 8,
	UPDOWN_MOTO2_OFFLINE_ID = 9,
	HUG_MOTO_OFFLINE_ID     = 10,
	PICKBOX_ROTATE_MOTO_OFFLINE_ID = 11,
	PICKBOX_TRANSLATE_MOTO_OFFLINE_ID = 12,
	
} hmi_data_id_e;
#endif

